<%@ Page Language="C#" MasterPageFile="~/GUI/Webpage/MasterTunga.master" AutoEventWireup="true" CodeFile="TableBooking.aspx.cs" Inherits="GUI_Webpage_Default" Title="TABLE BOOKING |TUNGA Restaurants" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   <table class="tdHolder" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <table class="TableOrderContent" border="0" cellpadding="0" cellspacing="0">
                         <tr>
                             <td colspan="2">
                                 <img src="../../GUI/Image/WebsiteTemplate/30-4/Title_TableBooking.jpg" alt="Table Booking" />
                             </td>
                         </tr>
                         <tr>
                              <td>
                                  <table class="TableOrderContent" cellpadding="5"; cellspacing="5"> 
                                       <tr>
                                           <td class="tdTextContent">
                                             <table class="TableOrderContent" border="0" cellpadding="5" cellspacing="5">
                                                               <tr>
                                                                   <td colspan="4">
                                                                       <strong><i>
                                                                       Find a Table
                                                                       </i></strong></td>
                                                               </tr>
                                                               <tr>
                                                                   <td>
                                                                       Select restaurant:</td>
                                                                   <td>
                                                                       Date using Table:</td>
                                                                   <td>
                                                                       Time:</td>
                                                               </tr>
                                                               <tr>
                                                                   <td>
                                                                       <asp:DropDownList ID="drpRestaurant" runat="server">
                                                    <asp:ListItem>---Select a restaurant---</asp:ListItem>
                                                </asp:DropDownList></td>
                                                                   <td>
                                                                     
                                                                       <asp:TextBox ID="txtDateUsingTable" runat="server" MaxLength="10">mm/dd/yyyy</asp:TextBox>&nbsp;
                                                                   </td>
                                                                   <td>
                                                           <asp:DropDownList ID="drpTime" class="controlText" runat="server">
                                                               <asp:ListItem>10:00</asp:ListItem>
                                                               <asp:ListItem>11:00</asp:ListItem>
                                                               <asp:ListItem>12:00</asp:ListItem>
                                                               <asp:ListItem>13:00</asp:ListItem>
                                                               <asp:ListItem>16:00</asp:ListItem>
                                                               <asp:ListItem>17:00</asp:ListItem>
                                                               <asp:ListItem>18:00</asp:ListItem>
                                                               <asp:ListItem>19:00</asp:ListItem>
                                                               <asp:ListItem>20:00</asp:ListItem>
                                                               <asp:ListItem>21:00</asp:ListItem>
                                                           </asp:DropDownList></td>
                                                           <td class="tdButton">
                                                                       <asp:Button ID="btnFind" runat="server" Text="Find table" class="button" OnClick="btnFind_Click"/></td>
                                                                       </tr>
                                                              
                                                        <tr>
                                                            <td>
                                                                <strong>
                                                                    <i>
                                                                        TABLE INFORMATION
                                                                    </i>
                                                                </strong>
                                                            </td>
                                                        </tr>                                                 
                                                 <tr>
                                                     <td colspan="4">
                                                        <table class="TableDisplay" cellpadding="5" cellspacing="5">
                                                            <tr>
                                                                <td>
                                                                    <asp:DataList ID="dlTableInfo" runat="server" RepeatColumns="3" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Both">
                                                                        <ItemTemplate>
                                                                            <table border="0" cellpadding="0" cellspacing="0">
                                                                                <tr>
                                                                                    <td colspan="2">
                                                                                   <img src="<%#DataBinder.Eval(Container.DataItem,"tablePicture")%>" alt="<%#DataBinder.Eval(Container.DataItem,"tableID")%>"/>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td>
                                                                                        TableID:</td>
                                                                                    <td>
                                                                                    <%#DataBinder.Eval(Container.DataItem, "tableID")%>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td>
                                                                                        Number of seat:</td>
                                                                                    <td>
                                                                                        <%#DataBinder.Eval(Container.DataItem, "numberOfPerson")%>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td>
                                                                                        Price:</td>
                                                                                    <td>
                                                                                        $<%#DataBinder.Eval(Container.DataItem, "price")%>                                                                                    
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td>
                                                                                        Description:</td>
                                                                                    <td>
                                                                                        <%#DataBinder.Eval(Container.DataItem, "tableDescription")%>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td>
                                                                                        <asp:Button ID="btnAddtoBooking" runat="server" Text="Add to booking" OnClick="btnAddtoBooking_Click" /></td>
                                                                                    <td>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </ItemTemplate>
                                                                        <FooterStyle BackColor="White" ForeColor="#000066" />
                                                                        <SelectedItemStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                                                                        <ItemStyle ForeColor="#000066" />
                                                                        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                                                                    </asp:DataList>
                                                                    </td>
                                                            </tr>
                                                            <tr>
                                                                    <td>
                                                                        <asp:TextBox ID="txtPageSize" runat="server" Visible="False">6</asp:TextBox>
                                                                        <asp:TextBox ID="txtCurentPage" runat="server" Visible="False">1</asp:TextBox>
                                                                        <asp:TextBox ID="txtTotal" runat="server" Visible="False"></asp:TextBox>
                                                                        <asp:LinkButton ID="First" runat="server" OnClick="Page_DataList">First</asp:LinkButton>
                                                                        <asp:LinkButton ID="Prev" runat="server" OnClick="Page_DataList">Previous</asp:LinkButton>
                                                                        <asp:LinkButton ID="Next" runat="server" OnClick="Page_DataList">Next</asp:LinkButton>
                                                                        <asp:LinkButton ID="Last" runat="server" OnClick="Page_DataList">Last</asp:LinkButton>
                                                                    </td>                                                            
                                                            </tr>
                                                        </table>                                                        
                                                     </td>
                                                 </tr>
                                                  <tr> 
                                                        <td>
                                                        </td>
                                                        <td>
                                                        </td>
                                                       <td >
                                                           <a href="BookTable.aspx"><strong>
                                                           <i>  
                                                            View your booking                                                          
                                                           </i>
                                                           </strong></a>
                                                       </td>
                                                  </tr>
                                         </table>      
                                           </td>
                                        </tr>
                                  </table>
                              </td>
                         </tr>
                </table>
             </td>
        </tr>
    </table>                           
</asp:Content>

